<template>
  <el-dialog v-model="show" top="10vh" width="60%" center append-to-body :show-close="false" :before-close="handleClose">
    <el-carousel :autoplay="false" :pause-on-hover="false" height="65vh">
      <el-carousel-item v-for="item in list" :key="item.Value">
        <div style="text-align:center;font-size:16px;font-weight:bold;margin-bottom:10px">{{ item.Title }}</div>
        <div style="height: 60vh; overflow-y: auto">
          <img :src="item.Value" alt="" style="width: 100%" />
        </div>
      </el-carousel-item>
    </el-carousel>
    <template #footer>
      <el-button type="primary" @click="handleClose">知道了</el-button>
    </template>
  </el-dialog>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  emits:['handleCloseViewService'],
  props: {
    list: {
      type: Array,
      default: []
    },
    show: {
      type: Boolean,
      default: false
    }
  },
  setup(props,{emit}) {
      const handleClose=()=>{
          emit('handleCloseViewService')
      }

      return {
          handleClose
      }
  }
})
</script>

<style>
.el-dialog__header {
  display: none;
}
.el-carousel__indicators{
    display: none;
}
</style>

<style lang="scss" scoped>
div::-webkit-scrollbar{
  width: 0;
}
</style>
